package org.example.bookshelf_manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.bookshelf_manager.model.UserInfo;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserInfoMapper
 * @Author ZJX
 * @Date 2024/8/27 11:58
 * @Version 1.0
 */

@Mapper
public interface UserInfoMapper {

    @Select("SELECT id, user_name, password, delete_flag, create_time, update_time FROM user_info WHERE user_name = #{userName} and delete_flag = 0")
    UserInfo getUserInfoByName(String userName);

}
